# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-hcloud
pkgver=1.17.0
pkgrel=0
pkgdesc="Official Hetzner Cloud Python library"
url="https://github.com/hetznercloud/hcloud-python"
license="MIT"
arch="noarch"
depends="python3 py3-requests py3-dateutil"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-mock"
source="https://files.pythonhosted.org/packages/source/h/hcloud/hcloud-$pkgver.tar.gz"
builddir="$srcdir/hcloud-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir" --skip-build
}

sha512sums="
885b050aaa691900b249bc5171216f9fae621734aa4c0b1d80cf93dd540748574ac6f2b1b2356bf0c03972eabdde713f58358017e12fff318ea04f815badfd0a  hcloud-1.17.0.tar.gz
"
